package com.pro.mapper;

import com.pro.pojo.JsUserFeedback;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassName:JsUserFeedbackMapper
 * Package:com.pro.mapper
 * Description: 意见反馈mapper
 *
 * @Date:2022/1/14 上午 11:37
 * @Author: WYH
 */
public interface JsUserFeedbackMapper {

    /**
     * @Author WYH
     * @Description //TODO 查询所有反馈
     * @Date 上午 11:40 2022/1/14
     * @Param feedbackType,feedbackStatus,limit,page
     * @return List<JsUserFeedback>
     **/
    List<JsUserFeedback> getAllUserFeedBack(@Param("feedbackType") String feedbackType, @Param("feedbackStatus") String feedbackStatus,@Param("limit") Integer limit, @Param("page") Integer page);

    /**
     * @Author WYH
     * @Description //TODO 计算所有反馈个数
     * @Date 上午 11:49 2022/1/14
     * @Param feedbackType,feedbackStatus,limit,page
     * @return List<JsUserFeedback>
     **/
    Integer count(@Param("feedbackType") String feedbackType, @Param("feedbackStatus") String feedbackStatus);
    
    /**
     * @Author WYH
     * @Description //TODO 删除反馈
     * @Date 下午 3:37 2022/1/14
     * @Param feedbackId
     * @return  true | false
     **/
    Boolean delFeebdack(@Param("feedbackId") Integer feedbackId);

    /**
     * @Author WYH
     * @Description //TODO 审核
     * @Date 下午 8:39 2022/1/14
     * @Param jsUserFeedback
     * @return  true | false
     **/
    Boolean UpdateFeedback(JsUserFeedback jsUserFeedback);

    /**
     * @Author WYH
     * @Description //TODO 查询审核详情
     * @Date 上午 10:23 2022/1/15
     * @Param feedbackId
     * @return  JsUserFeedback
     **/
    JsUserFeedback seeFeedback(@Param("feedbackId") Integer feedbackId);
}
